{ 

    const button = {  
        button : {
            elementTemplate : `
                        <div class="form-group">
                            <button class="btn btn-default" >{{title}}</button>
                        </div>
            `,
            prototypeTemplate : `
                        <div class="form-group">
                            <label >按钮的标题:</label>
                            <input type="text" class="form-control input-sm" v-model="title">
                        </div> 
            `,
            _constructor : function () {
                return {
                    data: {
                        title: '按钮'
                    }
                }
            }
        },
        submit : {
            elementTemplate : `
                        <div class="form-group">
                            <button class="btn btn-default" type="button" onclick="submit()" >{{title}}</button>
                        </div>
            `,
            prototypeTemplate : `
                        <div class="form-group">
                            <label >按钮的标题:</label>
                            <input type="text" class="form-control input-sm" v-model="title">
                        </div> 
            `,
            _constructor :  function () {
                return {
                    data: {
                        title: '提交'
                    } 
                }
            }
        }

    }

    if ( window.TEMPLATE && !window.TEMPLATE.button ) {
        window.TEMPLATE.button = button
    }
}